package com.mai4j.maiadmin.service;

import com.mai4j.maiadmin.model.dto.LanguageDTO;
import com.mai4j.maiadmin.model.dto.PageDTO;
import com.mai4j.maiadmin.model.http.datatables.Datatable;

import java.util.List;

/**
 * 微信公众号请关注: 开源螺丝钉
 * <br>
 * 码云请关注: <a href="https://gitee.com/xiyoufang">https://gitee.com/xiyoufang</a>
 * <br>
 * 哔哩哔哩请关注: <a href="https://space.bilibili.com/438927834">https://space.bilibili.com/438927834</a>
 *
 * @author xiyoufang
 */
public interface LanguageService {
    /**
     * 语言列表
     *
     * @return languages
     */
    List<LanguageDTO> list();

    PageDTO<LanguageDTO> paginate(Datatable datatable);

    LanguageDTO saveOrUpdate(LanguageDTO languageDTO);

    LanguageDTO get(Long languageId);

    void delete(Long languageId);
}
